import request from '@/utils/request'

// 查询出入人脸识别记录列表
export function listFaceRecord(query) {
  return request({
    url: '/face/faceRecord/list',
    method: 'get',
    params: query
  })
}

// 查询出入人脸识别记录详细
export function getFaceRecord(inOutRecordId) {
  return request({
    url: '/face/faceRecord/' + inOutRecordId,
    method: 'get'
  })
}

// 新增出入人脸识别记录
export function addFaceRecord(data) {
  return request({
    url: '/face/faceRecord',
    method: 'post',
    data: data
  })
}

// 修改出入人脸识别记录
export function updateFaceRecord(data) {
  return request({
    url: '/face/faceRecord',
    method: 'put',
    data: data
  })
}

// 删除出入人脸识别记录
export function delFaceRecord(inOutRecordId) {
  return request({
    url: '/face/faceRecord/' + inOutRecordId,
    method: 'delete'
  })
}
